cs = ['小明', '小张', '小黄', '小杨']
yf = ['小黄', '小李', '小王', '小杨', '小周']
sc = ['小杨', '小张', '小吴', '小冯', '小周']
def sumStaff(a,b,c):
    all = a + b + c
    d = []
    for i in all:
        if i not in d:
            d.append(i)
    return d
def onePart(a,b,c):
    d = []
    for i in a:
        if i not in b and i not in c:
            d.append(i)
    for i in b:
        if i not in a and i not in c:
            d.append(i)
    for i in c:
        if i not in a and i not in b:
            d.append(i)
    return d
def morePart(a, b, c):
    d = []
    for i in a:
        if i  in b or i  in c:
            d.append(i)
    for i in b:
        if i  in c and i not  in d:
            d.append(i)
    return d

choose = int(input('选择功能'))
if choose == 1:
    staff = sumStaff(cs, yf, sc)
    print(staff)
    print(len(staff))
elif choose == 2:
    print(onePart(cs, yf, sc))
    print(len(onePart(cs, yf, sc)))
elif choose == 3:
    print(morePart(cs, yf, sc))